package com.wjm.controller;

import com.wjm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

public class UserController {
    @Controller
    public class UserController {
        @Autowired
        private UserService userServiceImpl;
        @RequestMapping("/all")
        public String find(HttpServletRequest request){
            request.setAttribute("msg",userServiceImpl.findAll());
            return "success";
        }
    }
}
